package com.cool.mybatisplus;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;

import com.github.liaochong.myexcel.core.converter.CustomWriteContext;
import com.github.liaochong.myexcel.core.converter.CustomWriteConverter;

@Component
public class AgeConvertHandler implements CustomWriteConverter<Integer, String> {
    @Autowired
    private SysMenuDaoService sysMenuDaoService;
    @Resource(name = "customThreadPool")
    private ThreadPoolTaskExecutor customThreadPoolExecutor;

    @Override
    public String convert(Integer originalData, CustomWriteContext customWriteContext) {
        return "今年" + originalData + "岁";
    }
}
